/*
 * @Date: 2020-05-09 17:42:51
 * @LastEditTime: 2021-02-25 15:47:22
 * @Description: 同类型接口
 * @FilePath: \vue-leng\src\network\home\index.js
 */ 
import { request } from "../../config/request"

// get
const getAlarmList = function GetAlarmList(){
  return request({
    url:'api/alarm/getAlarmList'
  })
}

// post
export function getGroupDeviceList(groupId){
  return request({
    url:'api/model/getGroupDeviceList',
    params:{
      groupId
    }
  })
}

//更改请求地址
export function changeUrl(modelId){
  return request({
    baseURL:'http://192.168.1.35:8888',
    url:'api/model/getModelInfo',
    params:{
      modelId
    }
  })
}

export {
  getAlarmList
}